package com.ruoyi.hr.service.impl.attendempmanage.attendInfo;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.hr.mapper.attendempmanage.attendInfo.AttendInfoMapper;
import com.ruoyi.hr.service.attendempmanage.attendInfo.AttendInfoService;
import com.ruoyi.hr.util.utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AttendInfoServiceImpl implements AttendInfoService {

    @Autowired
    private AttendInfoMapper attendInfoMapper;

    @DataSource(value = DataSourceType.SLAVE)
    @Override
    public List<Map<String, Object>> findAttendInfoList(Map<String, Object> map) {
        return attendInfoMapper.findAttendInfoList(utils.addAuthority(map));
    }
}
